public class BatteryUtils
extends java.lang.Object
| Constructor and Description |
|---|
BatteryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
disableCharge()
关闭充电.
Disable charging. |
static boolean |
enableCharge()
开启充电.
Enable charging. |
static int |
getBatteryHealth()
电池健康状况,单位 %.
Battery health status, unit %. |
static java.lang.String |
getBatteryUniqueId()
电池ID.
Battery ID. |
static int |
getCurrentCapacity()
实际容量,单位mAh.
Battery Actual capacity, unit mAh. |
static int |
getCurrentCharge()
可用容量,单位mAh.
Battery Available capacity, unit mAh. |
static int |
getCycleCount()
循环次数.
Cycle count. |
static java.lang.String |
getManufactureDate()
生产日期.
Battery production date. |
static java.lang.String |
getPartNumber()
部件号.
Part number. |
static int |
getRatedCapacity()
额定容量,单位mAh.
Battery Rated capacity, unit mAh. |
static java.lang.String |
getSerialNumber()
序列号.
Serial number. |
static boolean |
getSmartBattery()
智能电池.
Smart battery. |
public static java.lang.String getBatteryUniqueId()
public static java.lang.String getSerialNumber()
public static java.lang.String getPartNumber()
public static java.lang.String getManufactureDate()
public static int getRatedCapacity()
public static int getCurrentCapacity()
public static int getCurrentCharge()
public static int getBatteryHealth()
public static int getCycleCount()
public static boolean getSmartBattery()
public static boolean enableCharge()
public static boolean disableCharge()